#ifndef INPUTFIELD_H
#define INPUTFIELD_H

#include <QGraphicsObject>

class InputField : public QGraphicsObject
{
public:
    InputField(QGraphicsItem *parent=0);
    void setText(QString t);

    QRectF boundingRect() const;
    void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget);
private:
    int width;
    int height;
    QPixmap *background;
    QString text;
};

#endif // INPUTFIELD_H
